# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models

ACCOUNT_TYPE_CHOICES=(
    ('1',u"注册用户"),
    ('2',u"VIP用户"),
    ('3',u"钻石VIP用户"),
    ('4',u'大师VIP用户'),
    ('5',u'王者VIP用户'),
)

class Account(User):
    account_type=models.IntegerField(choices=ACCOUNT_TYPE_CHOICES)



class ReportSubcription(models.Model):
    """研报订阅"""
    user=models.ForeignKey(to=User)
    products = models.CharField(verbose_name=u"品种",max_length=255,null=True)
    exchange=models.CharField(verbose_name=u"交易所",max_length=255,null=True)
    trade = models.CharField(verbose_name=u"行业大类",max_length=255,null=True)
    costomize_category=models.CharField(verbose_name="自定义类别",max_length=255,null=True)
    tag=models.CharField(verbose_name=u"标签",null=True,max_length=255)
    frequency=models.CharField(verbose_name=u"报告频率",null=True,max_length=255)
    institution=models.CharField(verbose_name=u"报告出处",null=True,max_length=255)
    author=models.CharField(verbose_name=u"作者",null=True,max_length=255)



